package user;

import operation.*;

import java.util.Scanner;

public class Admi extends User{
    public Admi (String name) {
        super (name);
        this.iOperations=new IOperation[]{
                new Exit (),
                new Find (),
                new Add (),
                new Del (),
                new Show()
        };
    }

    @Override
    public int menu () {
        System.out.println ("***************************");
        System.out.println (this.name+"欢迎来到管理员菜单！");
        System.out.println ("1.查找");
        System.out.println ("2.新增");
        System.out.println ("3.删除");
        System.out.println ("4.显示");
        System.out.println ("0.退出");
        Scanner p=new Scanner (System.in);
        int choice=p.nextInt ();
        return choice;
    }


}
